package Chapter7;
//145页例7.4 实现Serializable接口的类

import java.io.Serializable;

public class Student implements Serializable {
    int id;
    String name;
    int age;
    String department; //部门，院系
    public Student(int id,String name,int age,String department){
        this.id=id;
        this.name=name;
        this.age=age;
        this.department=department;
    }
}